// 这样的引入方式,会导致所有组件一上来就全部加载了
// import Home from '../pages/Home'
// import Login from '../pages/Login'
// import Test from '../pages/Test'
// import Demo from '../pages/Demo'
// 使用懒加载的方式加载组件
import React from 'react'
const Home = React.lazy(() => import('../pages/Home'))
const Login = React.lazy(() => import('../pages/login/Login'))
const Country = React.lazy(() => import('../pages/Country'))
const RegisterPhone=React.lazy(()=>import('../pages/registerPtone'))
const VerifyCode=React.lazy(()=>import ('../pages/VerifyCode'))
const VerifyPassword=React.lazy(()=>import( '../pages/VerifyPassword'))
// 配置路由表
export default [
  {
    path: "/",
    component: Login,
    exact: true,
  },
  {
    path: "/home",
    component: Home,
    
  },
  {
    path: "/login",
    component: Login,
  },
  {
    path: "/country",
    component: Country,
  },
  {
    path: "/registerPhone",
    component: RegisterPhone,
  },
  {
    path: "/registerCode",
    component: VerifyCode,
  },
  {
    path: "/registerPassword",
    component: VerifyPassword,
  },
];
